<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div:nth-child(1){
            width: 50px;
            height: 50px;
            background-color: red;
            position: relative;
            left: 50px;
        }
        div:nth-child(2){
            width: 50px;
            height: 50px;
            background-color: rebeccapurple;
            position: relative;
            left: 50px;
        }
        div:nth-child(3){
            width: 50px;
            height: 50px;
            background-color: skyblue;
            position: relative;
            left: 50px;
        }
        div:nth-child(4){
            width: 50px;
            height: 50px;
            background-color: green;
            position: relative;
            top: -100px;
        }
        div:nth-child(5){
            width: 50px;
            height: 50px;
            background-color: yellow;
            position: relative;
            top: -150px;
            left: 100px;
        }
    </style>
</head>
<body>
   <div></div>
   <div></div>
   <div></div>
   <div></div>
   <div></div>
</body>
</html>